<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>档案门类设置</title>
    <meta content="webkit" name="renderer"/>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/>
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"
          name="viewport"/>
    <link href="../js/layui/css/layui.css" media="all" rel="stylesheet"/>
    <link href="../style/admin.css" media="all" rel="stylesheet"/>
    <link href="../style/home.css" media="all" rel="stylesheet"/>
    <script src="../js/layui/layui.js"></script>
    <style type="text/css">
        .layui-input {
            height: 28px;
            font-size: 14px
        }

        .layui-form-select dl {
            font-size: 14px
        }

        .layui-tab-content {
            padding: 0;
        }

        .layui-card .layui-tab-brief .layui-tab-content {
            padding: 10px 0;
        }

        .layui-panel {
            padding: 10px;
        }


    </style>
</head>
<body layadmin-themealias="default">
<div class="layui-card" style="height: 100%">
    <div class="layui-card-header font20">
        <div id="title">档案门类设置</div>
    </div>
    <div class="layui-card-body">
        <div class="layui-fluid" style="padding: 0px; height: 100%">
            <div class="layui-row layui-col-space12">
                <div class="layui-col-xs3">
                    <div class="layui-panel">
                        <div class="layui-card-header" style="padding: 0 0">
                            <div id="classify-title">档案门类</div>
                            <div class="layui-layout-right">
                                <button type="button"
                                        class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs"
                                        lay-event="add" lay-on="newClassify">
                                    <i class="layui-icon layui-icon-file"></i>新增
                                </button>
                            </div>
                        </div>
                        <div class="layui-card-body" style="padding: 10px 0 0 0; margin: 0">
                            <table id="classifyTable" name="classifyTable" lay-filter="classifyTable"></table>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs9">
                    <div class="layui-card">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li class="layui-this">元数据设置</li>
                                <li>档号格式设置</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <div class="layui-panel" style="padding: 0 10px">
                                        <div class="layui-tab layui-tab-brief" lay-filter="classifyTab">
                                            <ul class="layui-tab-title"></ul>
                                            <div class="layui-tab-content"></div>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-tab-item">
                                    <div class="layui-panel">
                                        <blockquote class="layui-elem-quote-sm" id="toolBar"
                                                    style="margin-bottom: 5px">
                                            <div class="layui-inline" style="margin-bottom: 2px;">
                                                <div class="layui-input-block"
                                                     style="margin-left: 2px; padding: 2px; min-height: 0px; ">
                                                    <div class="layui-btn-group">
                                                        <button type="button"
                                                                class="layui-btn layui-btn-xs layui-btn-primary layui-border-blue"
                                                                onclick="addArchivesCodeFormat();">
                                                            <i class="layui-icon layui-icon-addition"></i>新增
                                                        </button>
                                                    </div>
                                                </div>
                                            </div>
                                        </blockquote>
                                        <table id="formatTable" lay-filter="formatTable" name="formatTable"></table>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script id="classOperationBar" type="text/html">
    <a lay-filter="edit" href="#" lay-event="edit"><i class="layui-icon layui-icon-edit p3" title="编辑"></i></a>
    <a lay-filter="del" href="#" lay-event="del"><i class="layui-icon layui-icon-delete p3" title="删除"></i></a>
</script>
<script id="codeOperationBar" type="text/html">
    {{# if(d.codeModel!='1'){ }}
    <a lay-filter="addition" href="#" lay-event="addition">
        <i class="layui-icon layui-icon-file p3" title="新建下级"></i></a>
    {{# } }}
    <a lay-filter="edit" href="#" lay-event="edit"><i class="layui-icon layui-icon-edit p3" title="编辑"></i></a>
    <a lay-filter="del" href="#" lay-event="del"><i class="layui-icon layui-icon-delete p3" title="删除"></i></a>
</script>
<script id="operationBar" type="text/html">
    <a lay-filter="edit" href="#" lay-event="edit"><i class="layui-icon layui-icon-edit p3" title="编辑"></i></a>
    <a lay-filter="del" href="#" lay-event="del"><i class="layui-icon layui-icon-delete p3" title="删除"></i></a>
    <a lay-filter="moveUp" href="#" lay-event="moveUp"><i class="layui-icon layui-icon-up p3" title="上移"></i></a>
    <a lay-filter="moveDown" href="#" lay-event="moveDown"><i class="layui-icon layui-icon-down p3"
                                                              title="下移"></i></a>
</script>
<script id="fillingmodelTpl" type="text/html">
    {{# if(d.fillingModel==1){ }} 文件级目录
    {{# } else if(d.fillingModel == 2){ }} 案卷级目录
    {{# } else if(d.fillingModel == 3) { }} 项目级目录
    {{# } }}
</script>
<script id="datamodulTpl" type="text/html">
    {{# if(d.dataType==1){ }} 字符型
    {{# } else if(d.dataType == 2){ }} 数字
    {{# } else if(d.dataType == 3) { }} 整型
    {{# } else if(d.dataType == 4) { }} 整型[4位]
    {{# } else if(d.dataType == 5) { }} 日期[8位数字]
    {{# }else if(d.dataType== 6) { }} 长字符
    {{# }else if(d.dataType== 7) { }} 18位身份证
    {{# } }}
</script>
<script id="datasrcmodelTpl" type="text/html">
    {{# if(d.datasrcModel==1){ }} 录入
    {{# } else if(d.datasrcModel == 2){ }} 内置数据
    {{# } else if(d.datasrcModel == 3) { }} 数据词典
    {{# } else if(d.datasrcModel == 4) { }} 上级数据
    {{# } else if(d.datasrcModel == 5) { }} 计算数据
    {{# } }}
</script>
<script id="editComponentTpl" type="text/html">
    {{# if(d.editComponent==1){ }} 单行录入
    {{# } else if(d.editComponent == 2){ }} 数字
    {{# } else if(d.editComponent == 3) { }} 日期
    {{# } else if(d.editComponent == 4) { }} 选择
    {{# } else if(d.editComponent == 5) { }} 2行录入
    {{# }else if(d.editComponent== 6) { }} 4行录入
    {{# }else if(d.editComponent== 7) { }} 8行录入
    {{# } }}
</script>
<script id="isonlyTpl" type="text/html">
    {{# if(d.isOnly==1){ }} <i class="layui-icon layui-icon-ok"></i> {{# } }}
</script>
<script id="ismakeonlyTpl" type="text/html">
    {{# if(d.isMakeonly==1){ }} <i class="layui-icon layui-icon-ok"></i> {{# } }}
</script>
<script id="ismustTpl" type="text/html">
    {{# if(d.isMust==1){ }} <i class="layui-icon layui-icon-ok"></i> {{# } }}
</script>
<script id="isshowlistTpl" type="text/html">
    {{# if(d.isShowlist==1){ }} <i class="layui-icon layui-icon-ok"></i> {{# } }}
</script>
<script id="isshoweditTpl" type="text/html">
    {{# if(d.isShowedit==1){ }} <i class="layui-icon layui-icon-ok"></i> {{# } }}
</script>
<script id="issearchTpl" type="text/html">
    {{# if(d.isSearch==1){ }} <i class="layui-icon layui-icon-ok"></i> {{# } }}
</script>
<script id="isfastsearchTpl" type="text/html">
    {{# if(d.isFastsearch==1){ }} <i class="layui-icon layui-icon-ok"></i> {{# } }}
</script>
<script id="isvaguesearchTpl" type="text/html">
    {{# if(d.isVaguesearch==1){ }} <i class="layui-icon layui-icon-ok"></i> {{# } }}
</script>
<script id="issortTpl" type="text/html">
    {{# if(d.isSort==1){ }} <i class="layui-icon layui-icon-ok"></i> {{# } }}
</script>
<script id="issysTpl" type="text/html">
    {{# if(d.isSys==1){ }} <i class="layui-icon layui-icon-ok"></i> {{# } }}
</script>
<script id="caneditTpl" type="text/html">
    {{# if(d.canEdit==1){ }} <i class="layui-icon layui-icon-ok"></i> {{# } }}
</script>
<script id="isautoincTpl" type="text/html">
    {{# if(d.isAutoinc==1){ }} <i class="layui-icon layui-icon-ok"></i> {{# } }}
</script>
<script id="codeModelTpl" type="text/html">
    {{# if(d.codeModel==1){ }} 件 {{# } else if(d.codeModel == 2){ }} 案卷 {{# } else if(d.codeModel == 3) { }} 项目 {{# } }}
</script>
<script id="isfixedpageTpl" type="text/html">
    {{# if(d.isfixedpage==1){ }} <i class="layui-icon layui-icon-ok"></i> {{# } }}
</script>
<script id="codeFormatTpl" type="text/html">
    {{# if(d.children==0){ }}
    {{d.codeFormat}}
    {{#} else { }}
    {{# if(d.fillingModel==3 && d.codeModel==1){ }}
    <p class="p4em">{{d.codeFormat}}</p>
    {{# } else { }}
    <p class="p2em">{{d.codeFormat}}</p>
    {{# } }}
    {{#} }}
</script>
<script type="text/javascript" src="../js/lib/common.js"></script>
<script type="text/javascript" src="../js/lib/watermark.js"></script>
<script>
    loadScript("../js/modules/basic/archivesClassify.js");
</script>
</body>
</html>
